package com.ruoyi.InboundManagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产入库管理对象 production_eceipt
 * 
 * @author admin
 * @date 2024-07-02
 */
public class ProductionEceipt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产入库id */
    private Long eceiptId;



    /** 单据编号 */
    @Excel(name = "单据编号")
    private String documentNumber;


    /** 物料编号 */
    @Excel(name = "物料编号")
    private String materialCode;

    /** 库位编号 */
    @Excel(name = "库位编号")
    private String materialNumber ;

    /** 库区编号 */
    @Excel(name = "库区编号")
    private String reservoirNumber;

    /** 生产日期 */
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;


    /** 有效期 */
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validity;

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialNumber() {
        return materialNumber;
    }

    public void setMaterialNumber(String materialNumber) {
        this.materialNumber = materialNumber;
    }

    public String getReservoirNumber() {
        return reservoirNumber;
    }

    public void setReservoirNumber(String reservoirNumber) {
        this.reservoirNumber = reservoirNumber;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Date getValidity() {
        return validity;
    }

    public void setValidity(Date validity) {
        this.validity = validity;
    }

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 来源单号 */
    @Excel(name = "来源单号")
    private String sourceOrderNumber;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completionTime;

    /** 入库申请总数 */
    @Excel(name = "入库申请总数")
    private String totalAmount;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private String lastUpdater;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;



    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public void setEceiptId(Long eceiptId)
    {
        this.eceiptId = eceiptId;
    }

    public Long getEceiptId() 
    {
        return eceiptId;
    }
    public void setDocumentNumber(String documentNumber) 
    {
        this.documentNumber = documentNumber;
    }

    public String getDocumentNumber() 
    {
        return documentNumber;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setSourceOrderNumber(String sourceOrderNumber) 
    {
        this.sourceOrderNumber = sourceOrderNumber;
    }

    public String getSourceOrderNumber() 
    {
        return sourceOrderNumber;
    }
    public void setCompletionTime(Date completionTime) 
    {
        this.completionTime = completionTime;
    }

    public Date getCompletionTime() 
    {
        return completionTime;
    }
    public void setTotalAmount(String totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public String getTotalAmount() 
    {
        return totalAmount;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setLastUpdater(String lastUpdater) 
    {
        this.lastUpdater = lastUpdater;
    }

    public String getLastUpdater() 
    {
        return lastUpdater;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eceiptId", getEceiptId())
            .append("documentNumber", getDocumentNumber())
            .append("state", getState())
            .append("sourceOrderNumber", getSourceOrderNumber())
            .append("completionTime", getCompletionTime())
            .append("totalAmount", getTotalAmount())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("lastUpdater", getLastUpdater())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("materialName",getMaterialName())
            .append("material_code",getMaterialCode())
            .append("material_number",getMaterialNumber())
            .append("reservoir_number",getReservoirNumber())
            .append("production_date",getProductionDate())
            .append("validity",getValidity())
            .toString();
    }
}
